<template>
  <div class="container">
    <el-container>
      <el-aside width="200px">
        <el-menu
          :default-active="$route.path"
          class="el-menu-vertical-demo"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
          router
        >
          <el-menu-item index="/draw">
            <i class="el-icon-menu"></i>
            <span slot="title">一张图</span>
          </el-menu-item>
          <el-menu-item index="/about">
            <i class="el-icon-menu"></i>
            <span slot="title">绘制区域</span>
          </el-menu-item>
        </el-menu>
      </el-aside>
      <el-container>
        <el-header>Header</el-header>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  mounted() {},
  methods: {},
}
</script>

<style scoped>
.el-aside {
  height: 100vh;
  background: #545c64;
}
.el-header {
  background: #545c64;
  width: 100%;
  height: 50px;
}
</style>
